package org.dromara.iot.service;

import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.iot.domain.bo.IotUpkeepProjectRecordBo;
import org.dromara.iot.domain.vo.IotUpkeepProjectRecordVo;

import java.util.Collection;
import java.util.List;

/**
 * 电梯保养项目记录Service接口
 *
 * @author lsl
 * @date 2024-06-14
 */
public interface IIotUpkeepProjectRecordService {

    /**
     * 查询电梯保养项目记录
     */
    IotUpkeepProjectRecordVo queryById(Long recordId);

    /**
     * 查询电梯保养项目记录列表
     */
    TableDataInfo<IotUpkeepProjectRecordVo> queryPageList(IotUpkeepProjectRecordBo bo, PageQuery pageQuery);

    /**
     * 查询电梯保养项目记录列表
     */
    List<IotUpkeepProjectRecordVo> queryList(IotUpkeepProjectRecordBo bo);

    /**
     * 新增电梯保养项目记录
     */
    Boolean insertByBo(IotUpkeepProjectRecordBo bo);

    /**
     * 修改电梯保养项目记录
     */
    Boolean updateByBo(IotUpkeepProjectRecordBo bo);

    /**
     * 校验并批量删除电梯保养项目记录信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 批量新增电梯保养项目记录
     */
    Boolean insertBatchByBo(List<IotUpkeepProjectRecordBo> iotUpkeepProjectRecordBos);

    /**
     * 根据保养ID查询保养项目记录
     */
    List<IotUpkeepProjectRecordVo> queryListByUpkeepId(Long upkeepId);
}
